﻿<phone:PhoneApplicationPage x:Class="OnlineVideos.Views.Settings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:bt="clr-namespace:SyncStories;assembly=SyncStories"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"  
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="White"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    Loaded="PhoneApplicationPage_Loaded" >

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>
        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="0,17,0,28" Orientation="Horizontal">
            <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" MouseLeftButtonDown="imgTitle_MouseEnter"/>
            <TextBlock x:Name="tblkVideosTitle"  Text="SETTINGS"  Style="{StaticResource DetailPagePivotTitle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <StackPanel  Grid.Row="1" >

          <Grid x:Name="ContentPanel" Margin="12,0,12,0">

                <Grid.RowDefinitions>
                    <RowDefinition Height="115*"/>
                    <RowDefinition Height="115*"/>
                    <RowDefinition Height="0*"/>
                    <RowDefinition Height="125*"/>
                    <RowDefinition Height="110"/>
                    <RowDefinition Height="72*"/>
                    <RowDefinition Height="72*"/>
                    <RowDefinition Height="90"/>


                </Grid.RowDefinitions>
          
                    <toolkit:ToggleSwitch Grid.Row="0" Name="GpsLocationToggleSwitch"  IsChecked="false" Height="115" FontSize="30" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="470" Checked="GpsLocationToggleSwitch_Checked" Unchecked="GpsLocationToggleSwitch_Unchecked" >
                    <toolkit:ToggleSwitch.Header>
                        <TextBlock Text="Location services " FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Header>
                    <toolkit:ToggleSwitch.Content >
                        <TextBlock Text="Off " FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Content>
                </toolkit:ToggleSwitch>
                <toolkit:ToggleSwitch Grid.Row="1" Name="toggleswitchRunUnderLoock"  IsChecked="false" Height="115" FontSize="30" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="470" Checked="lockToggleSwitch_Checked" Unchecked="lockToggleSwitch_Unchecked" >
                    <toolkit:ToggleSwitch.Header>
                        <TextBlock Text="Run App Under Lock screen" FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Header>
                    <toolkit:ToggleSwitch.Content >
                        <TextBlock Text="Off " FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Content>
                </toolkit:ToggleSwitch>

                <toolkit:ToggleSwitch Grid.Row="2" Name="toggleswitchUpdateMovies" IsChecked="false" Height="115" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="470" Checked="toggleswitchUpdateMovies_Checked" Unchecked="toggleswitchUpdateMovies_Unchecked">
                    <toolkit:ToggleSwitch.Header>
                        <TextBlock Text="Automatically Sync Video Links " FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Header>
                    <toolkit:ToggleSwitch.Content >
                        <TextBlock Text="Wi-Fi " FontSize="24" Foreground="White" Name="Cont" Height="38" Width="74"></TextBlock>
                    </toolkit:ToggleSwitch.Content>
                </toolkit:ToggleSwitch>
             
                <toolkit:ToggleSwitch Grid.Row="3" Name="toggleswitch" IsChecked="false" Height="115" HorizontalAlignment="Left" Margin="1,0,0,0" VerticalAlignment="Top" Width="470" Checked="toggleswitch_Checked" Unchecked="toggleswitch_Unchecked" >
                    <toolkit:ToggleSwitch.Header>
                        <TextBlock Text="Enable Password Protection"  FontSize="24" Foreground="White"></TextBlock>
                    </toolkit:ToggleSwitch.Header>
                    <toolkit:ToggleSwitch.Content >
                        <TextBlock Text="Off" FontSize="24" Foreground="White" Name="txttogg" Height="38" Width="74"></TextBlock>
                    </toolkit:ToggleSwitch.Content>
                </toolkit:ToggleSwitch>

                <Button Grid.Row="4" x:Name="btnparentalcontrol" Content="Parental Control" Width="420" Height="72" Margin="0,-40,0,0" Click="Button_Click" HorizontalAlignment="Left" Foreground="White" BorderBrush="White"/>

                <Button x:Name="btnabout" Content="About this app" Width="420" Height="70" Grid.Row="5" Click="btbabout_Click" HorizontalAlignment="Left" Margin="0,-50,0,0" Foreground="White" BorderBrush="White"></Button>
               <bt:SyncButton Grid.Row="6" Margin="0,-15,0,0" x:Name="sync" Height="72" Visibility="Visible"></bt:SyncButton>
            </Grid>

        </StackPanel>
        <StackPanel  Name="adstackpl" Grid.Row="2"  Orientation="Vertical" Height="80"  Margin="0,0,0,0" >
        </StackPanel>
    </Grid>
</phone:PhoneApplicationPage>
